<!DOCTYPE html>
<!--<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--添加约束头文件-->
    <meta charset="UTF-8">
    <title>小测试</title>
</head>
<body>
<p th:text="${msg}">默认值</p>

<p>
    今天是: <span th:text="${#dates.format(today)}">2021-06-14</span>
</p>
</body>
</html>